<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
       <span id="Userlogins">登入用户:</span>
       <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
       <script>
        $.ajax({
            type: "get",
            url: "/User/getAttribute",
            success: function (result) {
            $("#Userlogins").text(result);
        }
     });
      </script>
</body>
</html>